package com.wufang.lease.common.utlis;

import java.util.Random;

public class CodeUtil {

    public static String getRandomCode(Integer length){
        StringBuffer stringBuffer = new StringBuffer();
        Random random = new Random();
        for (int i = 0; i < length; i++) {
            int number = random.nextInt(10);
            stringBuffer.append(number);
        }
        return stringBuffer.toString();
    }
}
